const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    // 本地跨域代理. 目前注释的原因：暂时没有用途，server 端已经支持跨域
    port: 18083,
    proxy: {
      ['/admin-api']: {
        target: 'http://192.168.31.172:48080',
        ws: false,
        changeOrigin: true,
        // rewrite: (path) => path.replace(new RegExp(`^/admin-api`), ''),
      },
    },
  },
})
